<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.high
			{
				font-weight:bold;
				color:red;
			}
			.another
			{
				font-style:italic;
				color:blue;
			}
		</style>
		<script src="../../../common/js/jquery-3.4.1.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(function(){
					var p=$("p").attr("class")
					function a1(){
						$("p").attr("class"."class+another")
					}
					a1();
					$("#like").click(function(){
						a1();
					})
				})
		</script>
	</head>
	<body>
		<h3>例子</h3>
		<p title="选择你最喜欢的水果" class="high" id="link">选择你最喜欢的水果</p>
		<ul id="uu">
			<li>苹果</li>
			<li>橘子</li>
			<li>菠萝</li>
		</ul>
	</body>
</html>
